package com.bjx.auth.domain.param;

import com.bjx.common.core.domain.group.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(title = "登录参数",description = "登录参数")
public class LoginParam {


    @Schema(title = "username",description = "登录用户名")
    @NotBlank(message = "登录用户名不能为空")
    @Size(min = 1,max = 32,message = "登录用户名长度为1到32个字符")
    private String username;

    @Schema(title = "password",description = "密码")
    @Size(min = 1,max = 64,message = "密码长度为1到32个字符")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(title = "code",description = "验证码")
    @Size(min = 1,max = 4,message = "验证码长度为1到4个字符")
    @NotBlank(message = "验证码不能为空")
    private String code;

    @Schema(title = "code",description = "UUID")
    @NotBlank(message = "UUID不能为空")
    @Size(min = 1,max = 64,message = "UUID长度为1到64个字符")
    private String uuid;

    @Schema(title = "loginType",description = "登录类型")
    @NotBlank(message = "登录类型不能为空")
    private String loginType;
}
